package os.movie.subRenamer.test;

import java.io.File;
import java.io.IOException;
import java.util.zip.ZipException;

import org.junit.Test;

import cz.movie.subRenamer.util.JUnrarUtil;
import cz.movie.subRenamer.util.ZipUtil;

public class testJunrarUtil {

	@Test
	public void testUnrarRar() {
		String destination = "D:/temp/_testJunrar/backup/rar";
		JUnrarUtil.extractArchive("D:/temp/_testJunrar/backup/how_i_met_your_mother_-_season_6_cz.rar", destination);
	}

	@Test
	public void testUnrarZip() throws ZipException, IOException {
		String destination = "D:/temp/_testJunrar/backup/zip";
		ZipUtil.extraxtZipToDir(new File("D:/temp/_testJunrar/backup/zip.zip"), new File(destination), true);
		// JUnrarUtil.extractArchive("D:/temp/_testJunrar/backup/zip.zip", destination);
	}

}
